﻿<Window x:Class="WPF_MVVM_Sample.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:vm="clr-namespace:WPF_MVVM_Sample"
        Title="MainWindow" Height="350" Width="525">
    <Window.DataContext>
        <vm:ViewModel/>
    </Window.DataContext>
    <Window.Resources>
        <DataTemplate DataType="{x:Type vm:UserRecordViewModel}">
            <vm:UserRecord/>
        </DataTemplate>
    </Window.Resources>
    <Grid>
        <ContentControl Content="{Binding UserRecordViewModel}"
                        HorizontalAlignment="Left"
                        VerticalAlignment="Top"/>
    </Grid>
</Window>
